﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="P_WSCA.aspx.cs" MasterPageFile="~/Popup.Master"
    Inherits="SAP.P_WSCA" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" src="../../js/jquery-1.4.3.min.js"></script>
    <script type="text/javascript" src="../../js/main.js"></script>
    <link href="../../skin/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/javascript">
        a img
        {
            border: none;
        }
        ol li
        {
            list-style: decimal outside;
        }
        div#container
        {
            width: 780px;
            margin: 0 auto;
            padding: 1em 0;
        }
        div.side-by-side
        {
            width: 100%;
            margin-bottom: 1em;
        }
        div.side-by-side > div
        {
            float: left;
            width: 50%;
        }
        div.side-by-side > div > em
        {
            margin-bottom: 10px;
            display: block;
        }
        .clearfix:after
        {
            content: "\0020";
            display: block;
            height: 0;
            clear: both;
            overflow: hidden;
            visibility: hidden;
        }
    </style>
    <link rel="stylesheet" href="Style/chosen.css" />
    <script type="text/javascript">
        function RefreshUpdatePanel() {

        };

         function PopupPrint() {
           <%Session["DocumentType"] = "WS"; %> 
            
            var url = "rptViewer.aspx?type=WS&GeneralID=" + document.getElementById('hf_GeneralID').value;
            window.open(url, '_self');
        };
    </script>
    <div>
        <asp:UpdatePanel ID="editItemUpdatePanel" runat="server" UpdateMode="Conditional"
            ChildrenAsTriggers="True">
            <ContentTemplate>
                <table border="0" width="100%" style="background-color: #C9DBF2;">
                    <tr>
                        <td class="FormLineItemAlt">
                             WARRANTY SERVICE CLAIM (A)
                        </td>
                    </tr>
                </table>
                <table border="0" width="100%">
                    <tr>
                        <td style="width: 50%">
                            <table border="0" width="100%" style="background-color: #C9DBF2;">
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Date:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txtDate" runat="server" Enabled="False" Width="35%"></asp:TextBox>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Customer Name:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_CusName" runat="server" Width="90%" Enabled="False"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Registration Number
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_RegistrationNum" runat="server" Width="90%" Enabled="False"></asp:TextBox>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        VIN:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_VIN" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Distributor
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_DistCode" runat="server" Width="35%" Enabled="False">VSM</asp:TextBox>
                                        <asp:TextBox ID="txt_DistName" runat="server" ClientIDMode="Static" Width="55%" Enabled="False">Vinastar</asp:TextBox>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Failure Date:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_FailureDate" runat="server"></asp:TextBox>
                                        <cc1:CalendarExtender ID="txt_ActualDate_CalendarExtender" runat="server" Format="dd/MM/yyyy"
                                            PopupButtonID="ImageButton7" TargetControlID="txt_FailureDate">
                                        </cc1:CalendarExtender>
                                        <asp:ImageButton ID="ImageButton7" runat="Server" AlternateText="Click to show calendar"
                                            ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Dealer
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_DealerCode" runat="server" Enabled="False" Width="35%" ClientIDMode="Static"></asp:TextBox>
                                        <asp:TextBox ID="txt_DealerName" runat="server" ClientIDMode="Static" Enabled="False"
                                            Width="55%"></asp:TextBox>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Odometer:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_Odometer" runat="server" Enabled="False" Width="33%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Seq No
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_SeqNo" runat="server" Width="35%" Enabled="False"></asp:TextBox>
                                        S:
                                        <asp:TextBox ID="txt_S" runat="server" Width="50%"></asp:TextBox>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Sold Date:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_SoldDate" runat="server" ClientIDMode="Static" Enabled="False"
                                            Width="33%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        ID
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        &nbsp;<asp:TextBox ID="txt_ID" runat="server" Width="12%">EA</asp:TextBox>
                                        T:<asp:DropDownList ID="ddl_T" runat="server">
                                        </asp:DropDownList>
                                        DIV:<asp:DropDownList ID="ddl_DIV" runat="server" Width="102px">
                                        </asp:DropDownList>
                                    </td>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        KD
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:CheckBox ID="chk_KD" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Invoice Date:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_InvoiceDate" runat="server" Enabled="False" Width="35%"></asp:TextBox>
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 15%">
                                        Hour Meter Reading:
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 35%">
                                        <asp:TextBox ID="txt_HourMeter" runat="server" Width="33%" Enabled="False"></asp:TextBox>
                                        MANU:<asp:TextBox ID="txt_Manu" runat="server" Width="46%" Enabled="False"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Condition Code:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_ConditionCode" runat="server" Width="45%"></asp:TextBox>
                                        A:
                                        <asp:DropDownList ID="ddl_A" runat="server" Width="45%" data-placeholder="Choose..."
                                            class="chzn-select">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 15%">
                                        Reference Code:
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 35%">
                                        <asp:TextBox ID="txt_RefCode" runat="server" Width="33%" Enabled="False"></asp:TextBox>
                                        M:
                                        <asp:TextBox ID="txt_M" runat="server" Width="12%" Enabled="False"></asp:TextBox>
                                        COM:
                                        <asp:TextBox ID="txt_COM" runat="server" Width="12%" Enabled="False"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        B
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:DropDownList ID="ddl_B" runat="server" Width="45%" data-placeholder="Choose..."
                                            class="chzn-select">
                                        </asp:DropDownList>
                                        C:
                                        <asp:DropDownList ID="ddl_C" runat="server" Width="45%" data-placeholder="Choose..."
                                            class="chzn-select">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 35%">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 15%" class="FormLineItemAlt">
                                        Engine:
                                    </td>
                                    <td style="width: 35%" class="FormLineItemAlt">
                                        <asp:TextBox ID="txt_Model" runat="server" Enabled="False" Width="35%"></asp:TextBox>
                                        <asp:TextBox ID="txt_EngineNum" runat="server" ClientIDMode="Static" Enabled="False"
                                            Width="55%"></asp:TextBox>
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td class="FormLineItemAlt" style="width: 35%">
                                        Ratio L:
                                        <asp:TextBox ID="txt_RatioL" runat="server" Width="12%" Enabled="False"></asp:TextBox>
                                        Ratio P:
                                        <asp:TextBox ID="txt_RatioP" runat="server" Width="13%" Enabled="False"></asp:TextBox>
                                        FCT:
                                        <asp:TextBox ID="txt_FCT" runat="server" Width="12%" Enabled="False"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="FormLineItemAlt" style="width: 15%">
                                        Notes:
                                    </td>
                                    <td class="FormLineItemAlt" colspan="3">
                                        <asp:TextBox ID="txt_Notice" runat="server" Height="53px" TextMode="MultiLine" Width="96%"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table border="0" width="100%">
                    <tr>
                        <td class="style2">
                            <asp:Button ID="btn_Save" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF"
                                Height="30px" Text="Save" Width="90px" OnClick="btn_Save_Click" />
                            <asp:Button ID="btn_Print" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF"
                                Height="30px" Text="Print" Width="90px" OnClientClick="PopupPrint();" />
                            <asp:Button ID="Button2" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF" Height="30px"
                                OnClientClick="return Main.cancelDialogClick()" Text="Close" Width="90px" />
                            <asp:Label ID="lb_Message" runat="server" Text="[]"></asp:Label>
                            <asp:HiddenField ID="hf_GeneralID" runat="server" ClientIDMode="Static" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <script src="Scripts/jquery.min.js" type="text/javascript"></script>
        <script src="Scripts/chosen.jquery.js" type="text/javascript"></script>
        <script type="text/javascript">            $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({ allow_single_deselect: true }); </script>
    </div>
</asp:Content>
